<template>
  <div class="terms-container">
    <div class="terms-content">
      <div class="terms-header">
        <h1>{{ t('terms.title') }}</h1>
        <div class="back-button">
          <el-button @click="$router.go(-1)">{{ t('common.back') }}</el-button>
        </div>
      </div>
      
      <div class="terms-body">
        <h2>1. {{ t('terms.acceptance') }}</h2>
        <p>{{ t('terms.acceptanceContent') }}</p>
        
        <h2>2. {{ t('terms.services') }}</h2>
        <p>{{ t('terms.servicesContent') }}</p>
        
        <h2>3. {{ t('terms.userAccounts') }}</h2>
        <p>{{ t('terms.userAccountsContent') }}</p>
        
        <h2>4. {{ t('terms.userContent') }}</h2>
        <p>{{ t('terms.userContentRules') }}</p>
        
        <h2>5. {{ t('terms.intellectualProperty') }}</h2>
        <p>{{ t('terms.intellectualPropertyContent') }}</p>
        
        <h2>6. {{ t('terms.dataPrivacy') }}</h2>
        <p>{{ t('terms.dataPrivacyContent') }}</p>
        
        <h2>7. {{ t('terms.termination') }}</h2>
        <p>{{ t('terms.terminationContent') }}</p>
        
        <h2>8. {{ t('terms.limitation') }}</h2>
        <p>{{ t('terms.limitationContent') }}</p>
        
        <h2>9. {{ t('terms.modification') }}</h2>
        <p>{{ t('terms.modificationContent') }}</p>
        
        <h2>10. {{ t('terms.contactUs') }}</h2>
        <p>{{ t('terms.contactUsContent') }}</p>
      </div>
      
      <div class="terms-footer">
        <p>{{ t('terms.lastUpdated') }}: 2023-05-01</p>
      </div>
    </div>
  </div>
</template>

<script setup>
import { t } from '@/utils/i18n'
</script>

<style scoped>
.terms-container {
  min-height: 100vh;
  background-color: #f5f7fa;
  padding: 40px;
  display: flex;
  justify-content: center;
}

.terms-content {
  max-width: 800px;
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.terms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.terms-header h1 {
  font-size: 28px;
  color: #303133;
  margin: 0;
}

.terms-body {
  color: #606266;
  line-height: 1.6;
}

.terms-body h2 {
  font-size: 20px;
  color: #303133;
  margin-top: 30px;
  margin-bottom: 15px;
}

.terms-body p {
  margin-bottom: 20px;
}

.terms-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #909399;
}
</style> 